﻿using System;
using System.Collections.Generic;
using System.Text;
using Best.SmartCms.Dto.Request;

namespace Best.SmartCms.Dto
{
    /// <summary>
    /// 
    /// </summary>
    public class CategoryDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 上级类型
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? OrderNo { get; set; }
      
    }

	/// <summary>
    /// 编辑对象
    /// </summary>
	public class CategoryEditDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 上级类型
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? OrderNo { get; set; }
      
    }

    /// <summary>
    /// 查询条件
    /// </summary>
    public class CategoryListQueryDto: PagedQueryRequest
    {

      
    }

    /// <summary>
    /// 列表对象
    /// </summary>
	public class CategoryListDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 上级类型
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }


        /// <summary>
        /// 修改人员
        /// </summary>
        public string UpdatorName { get; set; }

        /// <summary>
        /// 子级
        /// </summary>
        public List<CategoryListDto> Children { get; set; }

    }
}
